import 'package:amoy_ticket/utils/router/router_util.dart';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class LicenseInfoPage extends StatefulWidget {
  LicenseInfoPage({Key? key}) : super(key: key);

  @override
  _LicenseInfoPageState createState() => _LicenseInfoPageState();
}

class _LicenseInfoPageState extends State<LicenseInfoPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        automaticallyImplyLeading: false,
        leading: GestureDetector(
          child: Row(
            children: [
              Icon(Icons.chevron_left, color: Colors.blue, size: 20.sp),
              Text(
                '返回',
                style: TextStyle(color: Colors.blue),
              ),
            ],
          ),
          onTap: () {
            RouterUtil.pop(context);
          },
        ),
        title: Text(
          '证照信息',
          style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold),
        ),
        centerTitle: true,
        backgroundColor: Colors.white,
      ),
      body: SingleChildScrollView(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Container(
              margin: EdgeInsets.symmetric(horizontal: 10.w, vertical: 10.h),
              child: Text(
                '证照信息',
                style: TextStyle(fontSize: 17.sp, fontWeight: FontWeight.bold),
              ),
            ),
            Container(
              margin: EdgeInsets.only(left: 10.w, bottom: 10.h),
              child: Row(
                children: [
                  CircleAvatar(
                    backgroundImage: CachedNetworkImageProvider(
                        'https://gimg2.baidu.com/image_search/src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fimages%2F20171222%2F9131dac0f6b14d32b8c49d77af82a277.jpeg&refer=http%3A%2F%2F5b0988e595225.cdn.sohucs.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1633678483&t=bdc9f028e671686ae12158f3f591a51a'),
                    radius: 10.r,
                  ),
                  SizedBox(width: 5.w),
                  Text('淘票票'),
                ],
              ),
            ),
            // CachedNetworkImage(
            //   imageUrl:
            //       'http://qyu5iz9il.hd-bkt.clouddn.com/license_information1.png',
            //   fit: BoxFit.fill,
            // ),
            // CachedNetworkImage(
            //   imageUrl:
            //       'http://qyu5iz9il.hd-bkt.clouddn.com/license_information3.png',
            //   fit: BoxFit.fill,
            // ),
            // CachedNetworkImage(
            //   imageUrl:
            //       'http://qyu5iz9il.hd-bkt.clouddn.com/license_information2.png',
            //   fit: BoxFit.fill,
            // )
          ],
        ),
      ),
    );
  }
}
